/*******************************************************************************
 * This software is subject to the terms of the GNU LESSER GENERAL PUBLIC LICENSE
 * Agreement, available at the following URL:
 * http://www.gnu.org/licenses/lgpl.html
 * Copyright (c) 2012, 2013  Feng Jianguang.
 * All rights reserved. 
 * You must accept the terms of that agreement to use this software.
 *******************************************************************************/
package com.brokenet.docs;

import org.junit.Test;

import com.brokenet.core.XBundle;
import com.brokenet.test.support.BaseTest;

public class DocGenerator extends BaseTest {

	@Test
	public void test() {
		XuiDocsGenerator xuiDocsGenerator = appContext
				.getBean(XuiDocsGenerator.class);
		for (XBundle b : xappContext.getXBundleContext().getXBundles()) {
			xuiDocsGenerator.process(b);
		}
		xuiDocsGenerator.completed();
		xuiDocsGenerator.generate("all_catalog");
	}
}
